AddGraphObject Method (Section Object)

The AddGraphObject method adds a GraphObject Object (Chart) to the Section Object. The inserted GraphObject is empty. Use the GraphObject properties and methods to add data, groups and settings. If optional parameter [pCrossTabObject] is passed, you can insert a CrossTab Chart.

Syntax
Function AddGraphObject (graphDataType As CRGraphDataType,
    Left As Long, Top As Long, [pCrossTabObject]) As GraphObject
Parameters

Parameter Description

graphDataType

CRGraphDataType. Specifies the data type for the graph that you want to add.

Left

Specifies the offset of the top left corner of the Object that you are adding relative to the top left corner of the parent Section, in twips.

Top

Specifies the offset of the top left corner of the Object that you are adding relative to the top left corner of the parent Section, in twips.

[pCrossTabObject]

If graphDataType=crCrossTabGraph, this parameter specifies the CrossTabObject to associate with the chart.

Returns

Returns a GraphObject Object.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com